#define  _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
    char in[10001];
    gets(in);
    for (int i = strlen(in) - 1; i >= 0; i--) 
    {
        printf("%c", in[i]);
    }
}